﻿using System.ServiceModel;
using System.ServiceModel.Web;

namespace WCFTestApp
{
    [ServiceContract]
    public interface IService1
    {
        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "/Hi/{name}", RequestFormat = WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json)]
        string Hi(string name);
    }
}